package algorithms;

import ClassPack.Class;

public class InheritanceGrader implements ClassGrader {

	@Override
	public double Grade(Class a, Class b) {
		if ( a.getM_subClasses() == b.getM_subClasses())
			return b.getM_subClasses().size() * 2;
		
		if ((a.getM_subClasses().size() >0 )  && (  b.getM_subClasses().size() >0 ))
			return 1;
		
		return 0;
	}

}
